<template>
    <div class="title-bar" :style="{width:width}">
      <div class="title-logo"></div>
      <div class="title-text">
        {{ title }}
      </div>
    </div>

</template>

<script>
export default {
  name: 'title-bar',
  props: {
    title: {
      type: String,
      default:""
    },
    width: {
      type: String,
      default:""
    }

  }
}
</script>

<style scoped>


.title-bar {
  margin-left: 4px;
  height: 20px;
  display: flex;
  margin-bottom: 5px;
  margin-top: 5px;
}
.title-logo{
  width: 8px;
  height: 100%;
  background-color: #ffffff;
}
.title-text {
  flex: 1;
  padding-left: 5px;
  font-size: 18px;
  font-weight: bold;
  line-height: 20px;
  text-align: left;
}


</style>
